package com.leyou.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.user.dto.UserDTO;
import com.leyou.user.entity.User;

public interface UserService extends IService<User> {
    /*
    * 查询用户信息是否存在
    * */
    Boolean existsData(String data, Integer type);
    /*
    * 用户验证码发送
    * */
    void sendCode(String phone);
    /*
    * 用户注册
    * */

    void register(User user, String code);

    /*
    * 根据手机号、密码查询用户信息
    * */
    UserDTO queryUserByPhoneAndPasssword(String username, String password);

}
